package com.clouddot.baipai.presenter;

import com.clouddot.baipai.model.TasksRepository;
import com.clouddot.baipai.model.beam.WeiChatNews.WeiChatNewsResponse;
import com.clouddot.baipai.model.beam.applyLeave.applyLeaveResponse;
import com.clouddot.baipai.model.beam.bindBanPai.bindBanPaiResponse;
import com.clouddot.baipai.model.beam.getAllClass.getAllClassResponse;
import com.clouddot.baipai.model.beam.getArcticById.getArcticByIdResponse;
import com.clouddot.baipai.model.beam.getArcticList.getArcticListResponse;
import com.clouddot.baipai.model.beam.getClassHonorById.getClassHonorByIdResponse;
import com.clouddot.baipai.model.beam.getClassInfo.getClassInfoResponse;
import com.clouddot.baipai.model.beam.getClassInfoById.getClassInfoByIdResponse;
import com.clouddot.baipai.model.beam.getClassInfoList.getClassInfoListResponse;
import com.clouddot.baipai.model.beam.getClassMemberById.getClassMemberByIdResponse;
import com.clouddot.baipai.model.beam.getClassType.getClassTypeResponse;
import com.clouddot.baipai.model.beam.getCourseById.getCourseByIdResponse;
import com.clouddot.baipai.model.beam.getCourseList.getCourseListResponse;
import com.clouddot.baipai.model.beam.getCourseTable.getCourseTableResponse;
import com.clouddot.baipai.model.beam.getCurrentCourse.getCurrentCourseResponse;
import com.clouddot.baipai.model.beam.getLeaveRecode.getLeaveRecordResponse;
import com.clouddot.baipai.model.beam.getLeaveType.getLeaveTypeResponse;
import com.clouddot.baipai.model.beam.getPersonInfo.getPersonInfoResponse;
import com.clouddot.baipai.model.beam.getRecord.getRecordByIdResponse;
import com.clouddot.baipai.model.beam.getRecord.getRecordResponse;
import com.clouddot.baipai.model.beam.getSchoolInfo.getSchoolInfoResponse;
import com.clouddot.baipai.model.beam.login.loginResponse;
import com.clouddot.baipai.model.beam.postPhoto.postPhotoResponse;

/**
 * Created by wxy on 2018/4/9.
 */

public class appPresenter implements IPresenter {
    public TasksRepository tasksRepository;

    public appPresenter(TasksRepository tasksRepository) {
        this.tasksRepository = tasksRepository;
    }

    @Override
    public String getWeatherInfo(String name) {
        return tasksRepository.getWeatherInfo(name);

    }

    @Override
    public getSchoolInfoResponse getSchoolInfo(String tag) {
        return tasksRepository.getSchoolInfo(tag);
    }

    @Override
    public getClassInfoResponse getClassInfo(String tag) {
        return  tasksRepository.getClassInfo(tag);
    }

    @Override
    public getPersonInfoResponse getPersonInfo() {
        return tasksRepository.getPersonInfo();
    }

    @Override
    public loginResponse login(String code,String imgUrl) {
        return  tasksRepository.login(code,imgUrl);
    }
    @Override
    public loginResponse login(String code) {
        return  tasksRepository.login(code);
    }

    @Override
    public getRecordResponse getRecord() {
        return tasksRepository.getRecord();
    }

    @Override
    public getRecordByIdResponse getRecordBySid(int pageIndex, int pageSize) {
        return tasksRepository.getRecordBySid(pageIndex,pageSize);

    }

    @Override
    public getArcticByIdResponse getArcticById(String Id) {
        return tasksRepository.getArcticById(Id);
    }

    @Override
    public getArcticListResponse getArcticList(String type,int pageIndex,int pageSize) {
        return tasksRepository.getArcticList(type,pageIndex,pageSize);
    }

    @Override
    public getClassInfoListResponse getClassInfoList(String type,int pageIndex,int pageSize) {
        return tasksRepository.getClassInfoList(type,pageIndex,pageSize);
    }

    @Override
    public getClassInfoByIdResponse getClassInfoById(String Id) {
        return tasksRepository.getClassInfoById(Id);
    }

    @Override
    public getCourseListResponse getCourseList(String Id) {
        return tasksRepository.getCourseList(Id);
    }

    @Override
    public getCourseByIdResponse getCourseById(String teacherId,int pageIndex ,int pageSize) {
        return tasksRepository.getCourseById(teacherId,pageIndex,pageSize);
    }

    @Override
    public getAllClassResponse getAllClassList() {
        return tasksRepository.getAllClassList();
    }

    @Override
    public getClassMemberByIdResponse getClassMemberByIdList(String classId,int pageIndex,int pageSize) {
        return tasksRepository.getClassMemberByIdList(classId,pageIndex,pageSize);
    }

    @Override
    public getClassHonorByIdResponse getClassHonorByIdList(String classId,int pageIndex,int pageSize) {
        return tasksRepository.getClassHonorByIdList(classId,pageIndex,pageSize);
    }

    @Override
    public bindBanPaiResponse bindBanPai(String classId, String cardDeviceId) {
        return tasksRepository.bindBanPai(classId,cardDeviceId);
    }

    @Override
    public getCourseTableResponse getcourseTable(String ClassId) {
        return tasksRepository.getcourseTable(ClassId);
    }

    @Override
    public getCurrentCourseResponse getCurrentCourse(String ClassId) {
        return tasksRepository.getCurrentCourse(ClassId);
    }

    @Override
    public postPhotoResponse postPhoto(String data, String imageType, String topnum, String store) {
        return tasksRepository.postPhoto(data,imageType,topnum,store);
    }

    @Override
    public getClassTypeResponse getClassType() {
        return tasksRepository.getClassType();
    }

    @Override
    public getLeaveRecordResponse getLeaveRecord(int pageIndex,int pageSize) {
        return tasksRepository.getLeaveRecord(pageIndex,pageSize);
    }

    @Override
    public getLeaveTypeResponse getLeaveType(String id) {
        return tasksRepository.getLeaveType(id);
    }

    @Override
    public applyLeaveResponse applyLeave(String type ,String typeText ,String startTime ,String endTime,String reason) {
        return tasksRepository.applyLeave(type,typeText,startTime,endTime,reason);
    }

    @Override
    public WeiChatNewsResponse WeiChatNews(String Id, String typeText, String startTime, String endTime, String reason) {
        return tasksRepository.WeiChatNews(Id,typeText,startTime,endTime,reason);
    }
}
